package com.dyh.hissystem.service.impl;

import com.dyh.hissystem.dao.MenuDao;
import com.dyh.hissystem.dto.Menu;
import com.dyh.hissystem.dto.vo.MenuVo;
import com.dyh.hissystem.service.MenuService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Administrator
 * @data 2024/11/4
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class MenuServiceImpl implements MenuService {
    private final MenuDao menuDao;
    public MenuServiceImpl(MenuDao menuDao) {
        this.menuDao = menuDao;
    }

    @Override
    public List<MenuVo> findMenuByUserId(String userId) {
        return menuDao.findMenuByUserId(userId);
    }
}
